Skip to main content

revXMLParent

Type

function

Summary

Returns the path to the parent node of a node in an XML tree.

Syntax

revXMLParent(<treeID>, <childNode>)

Description

Use the revXMLParent function to go up one level in an XML tree.

If the revXMLParent function encounters an error, it returns an error message starting with "xmlerr".

Important

The revXMLParent function is part of the XML library. To ensure that the function works in a standalone application, you must include this custom library when you create your standalone. In the Inclusions pane of the Standalone Application Settings window, make sure the "XML" checkbox is checked.

Parameters

NameTypeDescription

treeID

The number returned by the revXMLCreateTree or revXMLCreateTreeFromFile function when you created the XML tree.

childNode

The path to the node where you want to start.

Examples

revXMLParent(1,"/City/Publisher")
put revXMLParent(thisTree,thisNode) into field "Parent"

control structure: function

function: revXMLRootNode, revXMLFirstChild, revXMLCreateTree, revXMLCreateTreeFromFile

glossary: LiveCode custom library, node, Standalone Application Settings, standalone application, return, XML tree, parent node

library: XML library

Compatibility and Support

Introduced

LiveCode 2.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?